﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Domain.Entity
{
    public class Company
    {
        public Company()
        {
             Articles = new List<CompanyNewsArticle>();
        }

        [Key]
        [HiddenInput(DisplayValue = false)]
        public int CompanyID { get; set; }

        [Required]
        public string Name { get; set; }
        [Required]
        public string Type { get; set;}

        [InverseProperty("Company")]
        public ICollection<CompanyNewsArticle> Articles { get; set; }
    }
}
